csspathnode: Handle context going away
authorBenjamin Otte <otte@redhat.com>
Wed, 18 Mar 2015 17:22:17 +0000 (18:22 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 Mar 2015 17:24:45 +0000 (18:24 +0100)
commitec57c6c10b3a0774a27e11a9279a25b90ce76ed4
tree2bf1d0b3c87a525c1034fcc2cfbd471a786ca517
parentd55c261079370e3ddd61f3dab6bea9067380480e
csspathnode: Handle context going away

Sometimes path nodes can survive longer than the style context that
created them. Don't crash in those cases.

Fixes startup of mutter.

Testcase included.

https://bugzilla.gnome.org/show_bug.cgi?id=746407
gtk/gtkcsspathnode.c
gtk/gtkcsspathnodeprivate.h
gtk/gtkstylecontext.c
testsuite/gtk/stylecontext.c